/*
 * 软件版权: Mr.LEE
 * 修改记录:
 * 修改日期     修改人员  修改说明
 * ========    =======  ============================================
 * 2020/12/24  LJH  新增
 * ========    =======  ============================================
 */
package com.lagou.cloud.service.impl;

import com.lagou.cloud.dao.LagouAuthCodeDao;
import com.lagou.cloud.pojo.LagouAuthCode;
import com.lagou.cloud.service.AuthTokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 功能说明:
 *
 * @author LJH
 */
@Service
public class AuthTokenServiceImpl implements AuthTokenService {

    @Autowired
    private LagouAuthCodeDao lagouAuthCodeDao;

    @Override
    public boolean addAuthToken(LagouAuthCode lagouAuthCode) {
        if (lagouAuthCode == null) {
            return false;
        }
        LagouAuthCode save = lagouAuthCodeDao.save(lagouAuthCode);
        System.out.println(save);
        return true;
    }
}
